﻿using System;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using System.IO;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {
        //定义字符串
        String str = "Are you Ready?从这里开始吧。。。";
        char[] c = new char[100];
        StringReader sr = new StringReader(str);
        //读取字符数组
        sr.Read(c, 0, str.Length);//19
        Response.Write("读取结果如下：<br/>");
        //遍历字符数组
        foreach (char item in c)
        {
            Response.Write(item.ToString() + "<br/>");
        }
        sr.Close();

    }
}
